/* created by nobles0ul 
* on 27th sept 2011
* copyright (c) all rights reserved
*/

#include<iostream>

using namespace std;

class Date{

	friend ostream &operator<<(ostream &out , Date &);
	friend istream &operator>>(istream &in  , Date &);
private:
int day;
int month;
int year;

public:
Date(int dd =1, int mm =1, int yyyy = 1900);
Date & operator ++(void);
void upDate(void);
void setday(int dd);
void setmonth(int mm);
int leapyear(int);
void setyear(int yyyy);
int getday();
int getmonth();
int getyear();
int endofMonth(int);
Date(Date & d1);
Date & operator+=(int days);
Date & operator=(Date &d1);
bool operator==(Date &d1);
bool operator!=(Date &d1)
{
	return !(*this == d1);
}



};